<template>
  <div>
    <ul>
      <li :key="item.id" v-for="(item,index) in list">
        {{index+1 }} {{ item.name }}
        <button @click="$emit('delall',item.id)">删除</button>
      </li>
    </ul>
  </div>
</template>
<script>
export default {
  name: '',
  props: {
    list: {
      type: Array,
      default: () => []
    }
  },
  data () {
    return {

    }
  },
  created () {
  },
  computed: {
  },
  methods: {
  }
}
</script>
<style lang='less'  scoped>
</style>
